package com.major.mytomcat.servlet;

import com.major.mytomcat.Request;
import com.major.mytomcat.Response;

public class NotFindServlet implements Servlet{

    public NotFindServlet(){
        init();
    }

    @Override
    public void init() {

    }

    @Override
    public void service(Request request, Response response) {
        System.out.println("404");
        response.write("<h1>404：页面未找到</h1>");
    }

    @Override
    public void destroy() {

    }
}
